package com.axjy.dao;

import com.axjy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by l on 2018/1/20.
 */
public interface UserMapper {

    /**
     * 登录
     * @param userCode
     * @param userPass
     * @return
     */
    public User find(@Param("userCode") String userCode,@Param("userPass") String userPass);

    /**
     * 显示
     * @return
     */
    public List<User> search(@Param("userCode") String userCode,@Param("userName") String userName);

    /**
     * 获取Id
     * @param id
     * @return
     */
    public User getId(Integer id);

    /**
     * 添加用户
     * @param user
     * @return
     */
    public Integer addUser(User user);

    /**
     * 修改用户
     * @param user
     * @return
     */
    public Integer updateUser(User user);

    /**
     * 删除用户
     * @param id
     * @return
     */
    public Integer delUser(Integer id);


}
